//创建一个空map
let map1 = new Map();

console.log("map1的值为", map1);

//用迭代对象创建一个map
//迭代对象一般是个二维数组
let mapB = new Map([
  [1, "hello"],
  ["age", 19],
  [
    "name",
    function () {
      console.log("hello");
    },
  ],
]);

console.log("MapB的值为", mapB);
console.log("mapB的键值对数量为", mapB.size);
